package com.ds.infrastructure.hyperspace.console.config.auth;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: yaozhendong
 * @create: 2019-11-19 13:38
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "auth", ignoreUnknownFields = true)
public class AuthConfig {
    private String app;
    private String authUrl;
    /**
     * 紧急情况下（如：Auth服务不可用时），临时授权用户列表
     */
    private String tmpAuthUsers;
    private AuthPath authPath;

    @Data
    public static class AuthPath {
        private String validatePath;
    }
}
